package com.ruoyi.materials.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 原材料信息记录对象 lw_material_info
 * 
 * @author sll
 * @date 2023-10-12
 */
public class LwMaterialInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出入库信息主键 */
    private Long id;

    /** 出入库原材料id */
    @Excel(name = "出入库原材料id")
    private Long materialId;

    private String materialName;

    /** 出入库记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "出入库记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /** 出入库员工id */
    @Excel(name = "出入库员工id")
    private Long employeeId;

    private String employeeName;

    /** 出库/入库 */
    @Excel(name = "出库/入库")
    private Long flow;

    /** 数量 */
    @Excel(name = "数量")
    private Long completed;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setFlow(Long flow) 
    {
        this.flow = flow;
    }

    public Long getFlow() 
    {
        return flow;
    }
    public void setCompleted(Long completed) 
    {
        this.completed = completed;
    }

    public Long getCompleted() 
    {
        return completed;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialId", getMaterialId())
            .append("time", getTime())
            .append("employeeId", getEmployeeId())
            .append("flow", getFlow())
            .append("completed", getCompleted())
            .append("remark", getRemark())
            .toString();
    }
}
